#pragma once
#include <SFML/Graphics.hpp>

struct sBoxAttribs
{
	int x;
	int y;
	int tiles_x;
	int tiles_y;
};

class spriteBox
{
	std::vector<sf::Sprite> m_sprite_cardinals[4]; //TODO: IMPLIMENT (NO CENTER SPRITE FOR NOW)
	sf::Sprite m_sprite_diagonals[4]; //TODO: IMPLIMENT
	//sf::Texture* m_texture_list[8]; //USE TEXTURE LIST TO STORE TEXTURES AND THEN MAKE A LIST OF SPRITES LATER
	sf::Texture* m_texture; //TWO TILES AND FLIP THEM. UPPER LINE IS SUPPORT FOR NONFLIPPED, DO THAT LATER
	sBoxAttribs m_attribs;
	static const int m_tile_size = 8;

	void clearBox();
	void buildBox();
public:
	spriteBox();
	void spriteBox::setTexture(sf::Texture* p_tex);
	void setPosition(int p_x, int p_y);
	void setSize(int p_tiles_x, int p_tiles_y);
	void draw(sf::RenderWindow* App);
};

